package com.xinqi.modules.course.classmenu.mapper;

import com.xinqi.modules.course.classmenu.domain.ClassMenuEntity;
import com.xinqi.modules.course.classmenu.dto.rsp.ClassMenuResultDTO;
import com.xinqi.modules.course.classmenu.dto.req.ClassMenuQueryDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * 课程中版块设置表(ClassMenu)表数据库访问层
 *
 * @author liuxingxing
 * @since 2023-03-06 15:40:27
 */
@Mapper
public interface ClassMenuMapper extends SuperMapper<ClassMenuEntity> {
    Page<ClassMenuResultDTO> findPage(Page<Object> page, @Param("dto") ClassMenuQueryDTO query);

    List<ClassMenuResultDTO> findList(@Param("dto") ClassMenuQueryDTO query);
}
